package com.dao.base;
import com.model.domain.base.GetBaseServiceStationInfoDO;
import com.model.dto.visual.GetVisualInfoDTO;
import com.model.pojo.base.BaseServiceStationInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseServiceStationInfoMapper {
    int deleteByPrimaryKey(@Param("baseRepairServiceStationInfoId") Long baseRepairServiceStationInfoId);

    int insert(BaseServiceStationInfo record);

    int insertSelective(BaseServiceStationInfo record);

    BaseServiceStationInfo selectByPrimaryKey(@Param("baseRepairServiceStationInfoId") Long baseRepairServiceStationInfoId, @Param("isDelete") Byte isDelete);

    int updateByPrimaryKeySelective(BaseServiceStationInfo record);

    int updateByPrimaryKey(BaseServiceStationInfo record);

    List<BaseServiceStationInfo> selectList(GetBaseServiceStationInfoDO getbaseServiceStationInfoDO);

    void insertListSelective(List<BaseServiceStationInfo> baseServiceStationInfoList);

    void updateListSelective(List<BaseServiceStationInfo> baseServiceStationInfoList);

    int has(@Param("baseRepairServiceStationInfoId") Long baseRepairServiceStationInfoId, @Param("isDelete") Byte isDelete);

    /**
     * 统计
     * @param dto
     * @return
     */
    int countByPrimaryKey(GetVisualInfoDTO dto);
}